//: generics/coffee/Coffee.java
package generics.coffee;

public class Coffee {
	private static long counter = 0;
	private final long id = counter++;

	public String toString() {
		return getClass().getSimpleName() + " " + id;
	}
	
	public static  class Factory implements typeinfo.factory.Factory<Coffee>{

		@Override
		public Coffee create() {
			return new Coffee();
		}

	}
} // /:~
